#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"

int main()
{
	SListNode h;
	SListNode* phead = &h;
	InitSListNode(&h);
	PushBackNode(&phead, 34);
	PushBackNode(&phead, 67);
	PushBackNode(&phead, 12);
	PushBackNode(&phead, 89);
	PushBackNode(&phead, 43);
	PrintNode(&phead);
	int length = PrintNodeLength(&phead);
	printf("%d\n", length);
	PrintFind(&phead, 3, length);
	InsertListNode(&phead, 4, length, 55);
	length += 1;
	DeleteListNode(&phead, 2, length);
	length -= 1;
	PrintNode(&phead);
	//DestroyListNode(&phead);
	return 0;
}